Towards a Datatype Defining Rewrite System for Rational Arithmetic
نویسنده
چکیده
In [3] the concept of datatype defining rewrite systems (DDRSs) is introduced. A DDRS is an equational specification of a datatype that yields a ground-complete term rewriting system (TRS) when its equations are interpreted from left to right as rewrite rules. In [3] a number of DDRSs are presented for terms in unary, binary, and decimal notation. The goal of the present work is to review whether it is possible to further extend these specifications so that they may model rational arithmetic. Some research has been done on this topic which we review in Section 2; in particular we compare and contrast the results proven in [2] and [1] regarding the existence of such specifications. In Section 3 we rephrase the approach for computing irreducible fractions proposed in [1] by using conditional rewrite rules, which results in the design for a conditional TRS (CTRS) that may give rise to the aforementioned specification.
منابع مشابه
Three Datatype Defining Rewrite Systems for Datatypes of Integers each extending a Datatype of Naturals
Integer arithmetic is specified according to three views: unary, binary, and decimal notation. The binary and decimal view have as their characteristic that each normal form resembles common number notation, that is, either a digit, or a string of digits without leading zero, or the negated versions of the latter. The unary view comprises a specification of integer arithmetic based on 0, succes...
متن کاملRascal Tooling for Datatype Defining Rewrite Systems
It has been argued in [7] that using automated provers such as AProVE [4] and CSI [3] can benefit research projects on the topic of datatype defining rewrite systems (DDRSs), as the size of these DDRSs make manual completeness proofs long and error-prone. The authors of [7] note that no similar software exists for the ground-confluence property, and in [1] it is argued that such software should...
متن کاملSatisfiability of Non-linear (Ir)rational Arithmetic
We present a novel way for reasoning about (possibly ir)rational quantifier-free non-linear arithmetic by a reduction to SAT/SMT. The approach is incomplete and dedicated to satisfiable instances only but is able to produce models for satisfiable problems quickly. These characteristics suffice for applications such as termination analysis of rewrite systems. Our prototype implementation, called...
متن کاملRewrite Systems for Natural, Integral, and Rational Arithmetic
We give algebraic presentations of the sets of natural numbers , integers, and rational numbers by convergent rewrite systems which moreover allow eecient computations of arithmetical expressions. We then use such systems in the general normalised completion algorithm, in order to compute Grrbner bases of polynomial ideals over Q.
متن کاملThe Kansas University rewrite engine - A Haskell-Embedded Strategic Programming Language with Custom Closed Universes
When writing transformation systems, a significant amount of engineering effort goes into setting up the infrastructure needed to direct individual transformations to specific targets in the data being transformed. Strategic programming languages provide general-purpose infrastructure for this task, which the author of a transformation system can use for any algebraic data structure. The Kansas...
متن کامل